import { MidwayConfig } from '@midwayjs/core';

export default {
  // use for cookie sign key, should change to your own and keep security
  keys: '1742996808798_3201',
  koa: {
    port: 7001,
  },
  bullmq: {
    defaultConnection: {
      host: '127.0.0.1',
      port: 6379,
      password: 'Yzdz12312@',
    },
    // 可选，队列前缀
    defaultPrefix: '{midway-bullmq}',
  },
  puppeteer: {
    launchOptions: {
      headless: true,
      args: ['--no-sandbox'],
    },
    poolOptions: {
      min: 1, //最小连接数
      max: 1, //最大连接数
      acquireTimeoutMillis: 200000, //获取连接超时时间
    },
  },
} as MidwayConfig;
